﻿/*using System;
using System.IO;
using System.Collections.Generic;

public static class PathStorage
{
    public static void Save(Path path)
    {
        using (StreamWriter save = new StreamWriter(@"../../Saves.txt"))
        {
            foreach (var item in path.Paths)
            {
                save.WriteLine(item);
            }
        }
    }
    public static List<Path> Load()
    {
        Path load = new Path();
        List<Path> loads=new List<Path>();
        using (StreamReader read = new StreamReader(@"../../Loads.txt"))
        {
            string line = read.ReadLine();
            while (line != null)
            {
                if (line != "-")
                {
                    Point3D point = new Point3D();
                    string[] points = line.Split(',');
                    point.x = int.Parse(points[0]);
                    point.y = int.Parse(points[1]);
                    point.z = int.Parse(points[2]);
                    load.Add(point);


                }
                else
                {
                    loads.Add(load);
                    load = new Path();

                }
                line = read.ReadLine();

            }
        }
        return loads;

    }
}*/